package edu.nanyang.hibernate;

import org.hibernate.Session;
import org.hibernate.Transaction;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import edu.nanyang.domain.Goods;

public class ReleaseImpl extends HibernateDaoSupport implements Release {

	public boolean release(Goods goods) {
		boolean success = true;
		Transaction ts = null;

		Session session = getSession();
		ts = session.beginTransaction();
		ts.begin();
		session.save(goods);
		ts.commit();
		return success;
	}

}
